package com.njbdqn.updown.dao;

import com.njbdqn.updown.vo.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IStudentDAO {
    @Insert("insert into students(stuname,birthday,photo) values(#{stuname},#{birthday},#{photo})")
    public void saveStu(Student stu);

    @Select("select * from students")
    public List<Student> findAll();

}
